Skip to content

[#161967302] Add validation for parcel id#42

Open
ipaullly wants to merge 67 commits intomasterfrom
bg-Invalid-parcelId-161967302
Open

[#161967302] Add validation for parcel id#42
ipaullly wants to merge 67 commits intomasterfrom
bg-Invalid-parcelId-161967302

Conversation

@ipaullly
Copy link
Owner

What does this PR do?

Ensures that parcel id is valid and that a corresponding parcel exists otherwise an error is thrown

Description of Task to be completed?

  • Rewrite the retrieve_single_order() method to return False if id doesn't exist in database
  • Add if/else conditional to the view function to ensure that the an error is thrown in case retrieve_single_order() returns false

How should this be manually tested?

access the link to the POSTMAN documentation via this link https://documenter.getpostman.com/view/4014888/RzZCCwun and if you try to access a single order with an id that doesn't exist in the database then you receive an error message

[starts 161737424]Create RESTful api directory structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant